

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __UNIT_H
#define __UNIT_H

#include <stdint.h>


/**
 * @brief Get the token object
 *
 * @param token
 */
extern void get_token(char *token);
extern uint8_t is_app_running(void);
extern void set_app_running(uint8_t running);
extern void delay_ms(unsigned long mSec);
extern void mqtt_get_time(char *psDateTime);
extern int AtoH(char *str, uint8_t *out);
extern uint8_t itobcd(uint8_t data);
extern int get_current_time_global(char *DateTime);
extern uint64_t get_system_time_us(void);
extern uint64_t get_system_time_absoffset(uint64_t current, uint64_t last);
#endif /* __UNIT_H */
